package com.stary.springmvc.web.interceptor;

import com.stary.springmvc.web.json.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: Guan
 **/
@Controller
public class TestInterceptor {
    //使用postman传入user数据
    @RequestMapping("/hi1")
    public String hi1(User user){
        System.out.println("-- TestInterceptor -- hi1");
        return "success";
    }
    @RequestMapping("/hi2")
    public String hi2(){
        System.out.println("-- TestInterceptor -- hi2");
        return "success";
    }
    @RequestMapping("/ok")
    public String ok(){
        System.out.println("-- TestInterceptor -- hi2");
        return "success";
    }
}
